import request from "@/utils/request";

export function getNoticeList(params) {
  return request({
    url: "back/notice/notice?type=list",
    method: "get",
    params
  });
}

export function setNoticeSort(data) {
  return request({
    url: "back/notice/notice?type=add",
    method: "post",
    data
  });
}

export function editNoticeSort(data) {
  return request({
    url: "back/notice/notice?type=save",
    method: "post",
    data
  });
}

export function noticeDelete(data) {
  return request({
    url: "back/notice/notice?type=delete",
    method: "post",
    data
  });
}